import './App.css';
import "./icon.css";
import Lottery from "./features/lottery";
import Login from "./features/login";
import {
    BrowserRouter as Router,
    Switch,
    Route
} from "react-router-dom";

function App() {

    return (
        <div className="App">
            <Router>
                <Switch>
                    <Route path="/" exact>
                        <Login></Login>
                    </Route>
                    <Route path="/lottery/:user">
                        <Lottery></Lottery>
                    </Route>
                </Switch>
            </Router>
        </div>
    );
}

export default App;
